package config

import (
	"fmt"
	"goFNotify/global"
	"gopkg.in/yaml.v2"
	"io/ioutil"
)

func GetConfig() {
	config, err := ioutil.ReadFile("config.yaml")
	if err != nil {
		fmt.Print(err)
	}
	yaml.Unmarshal(config, &global.CONFIG)
}
